package com.example.administrator.energyida.activity;

import android.app.Activity;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

import com.example.administrator.energyida.R;
import com.jaeger.library.StatusBarUtil;

public class PersonalHelpActivity extends Activity {

    WebView webView;
    TextView textViewBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personal_help);

        // 设置状态栏的颜色
        StatusBarUtil.setColor(this, Color.parseColor("#10cafd"), 50);

        initViews();
        webView.loadUrl("http://47.101.187.18:8088/rjb/readme/energy.htm");

        textViewBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    private void initViews() {
        webView = findViewById(R.id.help_webView);
        textViewBack = findViewById(R.id.text_help_back);
    }
}
